// eslint-disable-next-line
import { BasicLayout, RouteView } from '@/layouts'

export const asyncRouterMap = [
  {
    path: '/',
    name: 'index',
    component: BasicLayout,
    redirect: '/home',
    meta: { title: '首页' },
    children: [
      {
        path: '/home',
        name: 'Home',
        component: () => import(/* webpackChunkName: "home" */'@/views/home/index'),
        meta: { title: '数据资源' }
      },
      {
        path: '/list',
        name: 'List',
        component: () => import(/* webpackChunkName: "list" */'@/views/list/index'),
        meta: { title: '样点数据查询' }
      },
      {
        path: '/analysis',
        name: 'analysis',
        component: () => import(/* webpackChunkName: "analysis" */'@/views/analysis/index'),
        meta: { title: '样点属性特征分析' }
      },
      {
        path: '/interpolation',
        name: 'interpolation',
        component: () => import(/* webpackChunkName: "interpolation" */'@/views/interpolation/index'),
        meta: { title: '土壤属性制图' }
      },
      {
        path: '/achievement',
        name: 'achievement',
        component: () => import(/* webpackChunkName: "achievement" */'@/views/achievement/index'),
        meta: { title: '成果数据统计' }
      },
      {
        path: '/inference',
        name: 'Inference',
        component: () => import(/* webpackChunkName: "inference" */'@/views/inference/index'),
        meta: { title: '土壤质量指标评价' }
      }
    ]
  }
]

/**
 * 基础路由
 * @type { *[] }
 */
export const constantRouterMap = [
  {
    path: '/403',
    name: '403',
    component: () => import(/* webpackChunkName: "403" */ '@/views/exception/403')
  },
  {
    path: '/404',
    name: '404',
    component: () => import(/* webpackChunkName: "404" */ '@/views/exception/404')
  },
  {
    path: '/*',
    name: 'notFound',
    redirect: '/404'
  }
]
